package mashixuan.msx;

import mashixuan.isoft.msx;
import org.junit.Test;

import java.util.Scanner;

public class m {
    package msx;

import java.util.Scanner;

    public class laozhao{

        public class EducationalSystem{
            public void starRUn(){
                SystemMenu =
                        SystemMenu.printLoginAndRegisterMenu();
                Sysyem;
                Scanner input =new Scanner(Sysyem.in);
                int userSelect=input.nextInt();
                switch(userSelect){
                    case 1 -> {
                        System.out.println("欢迎使用登录功能");
                    }
                    case 2 -> {
                        System.out.println("欢迎使用注册功能");
                    }
                    case 3 -> {
                        System.out.println("是否真的要退出本系统?(Y|N)");
                        String confirm = input.next();
                        if(confirm.equalsIgnoreCase("y")){
                            System.out.println("Bye!");
                            System.exit(0);
                        }
                    }
                    default ->{
                        System.out.println("您的选择有误，请重试！");
                    }
                }
            }

            public void startRun() {

            }
        }


    }
package msx;

    public class Main {
        public static void main(String[] args){
            laozhao.EducationalSystem system=new laozhao.EducationalSystem();
            system.startRun();
        }
    }
package msx;

import org.junit.Test;

    public class mashixuan {
        @Test
        public void printLoginAndRegisterMenu(){
            System.out.println("天津仁爱学院教务管理系统");
            System.out.println("--------------------------");
            System.out.println("1,登录");
            System.out.println("2,注册");
            System.out.println("3,退出");
            System.out.println("--------------------------");
            System.out.print("请选择(1|2|3):");
        }
    }